/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utility;

import java.math.BigDecimal;

/**
 *
 * @author jay
 */
public interface Constants {
    
    int MASTER_ITEM_DEPTEMENT = 1;
    BigDecimal PERSENT_DIVIDER = BigDecimal.valueOf(100);
    BigDecimal TAX_MULTIPLYER = BigDecimal.valueOf(0.1);
    
    String DATE_EDITOR_FORMAT1 = "dd-MM-yyyy";
    String DATE_EDITOR_FORMAT2 = "dd/MM/yyyy";
    String DATE_EDITOR_FORMAT3 = "ddMMyyyy";
    
    int GUDANG_INDUK  = 1;
    int GUDANG_RETUR  = 2;
    int GUDANG_HADIAH = 3;
    
    //jenis look up
    int LOOKUP_SUPPLIER = 0;
    int LOOKUP_CUSTOMER = 1;
    int LOOKUP_ITEM = 2;
    int LOOKUP_DEPT = 3;
    int LOOKUP_UNIT = 4;
    int LOOKUP_PRINCIPAL = 5;
    int LOOKUP_PACKAGE = 6;
    int LOOKUP_HADIAH = 7;
    int LOOKUP_MAIN_SUPPLIER = 8;
    
    //jenis look up transaksi
    int LOOKUP_PO = 20;
    
    //status order
    int STATUS_TRANS_OPEN     = 0; //blm diposting
    int STATUS_TRANS_POSTED   = 1; //sudah diposting
    int STATUS_TRANS_RECEIVED = 2; //sudah diterima
    int STATUS_TRANS_CLOSED   = 3; //sudah ditutup
    
    //JENIS_TRANSAKSI UNTUK PENOMORAN
    int TRANS_PURCHASE_ORDER    = 1;
    int TRANS_RECEIVING         = 2;
    int TRANS_PURCHASE_RETUR    = 3;
    int TRANS_MUTASI            = 4;
    int TRANS_ADJUSTMENT        = 5;
    int TRANS_DELETION          = 6;
    int TRANS_INVOICE           = 7;
    int TRANS_FINANCE           = 8;
    
    String OPERATOR_EQUAL      = "=";
    String OPERATOR_NOT_EQUAL  = "<>";
    String OPERATOR_NOT_OR     = "or";
    String OPERATOR_LTE        = "<=";
    String OPERATOR_GTE        = ">=";
    String OPERATOR_LT         = "<";
    String OPERATOR_GT         = ">";
    String OPERATOR_LIKE       = "like";
    String OPERATOR_NULL       = "is null";
    String OPERATOR_NOTNULL    = "is not null";
    String OPERATOR_CUSTOM     = "custom";
    String OPERATOR_ORDERBY    = "orderby";
    
    
     //policy
    public static final String POLICY_ADD = "ADD;";
    public static final String POLICY_OPEN = "OPEN;";
    public static final String POLICY_EDIT = "EDIT;";
    public static final String POLICY_DELETE = "DELETE;";
    public static final String POLICY_PRINT = "PRINT;";
    public static final String POLICY_APPROVAL = "APPROVE;";
    public static final String POLICY_UNAPPROVAL = "UNAPPROVE;";
}
